#!/bin/bash
########################################
#  This file is part of the open-eBackup project.
# Copyright (c) 2024 Huawei Technologies Co.,Ltd.
#
# open-eBackup is licensed under MPL v2.
# You can use this software according to the terms and conditions of the MPL v2.
# You may obtain a copy of MPL v2 at:
#
#          https://www.mozilla.org/en-US/MPL/2.0
#
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
# See the MPL v2 for more details.
########################################

set -eux
set -o pipefail 
set +e


cd /buildtools/scripts
sh /buildtools/scripts/AdoptOpenJDK_openjdk8-binaries_jdk8u452-b09.sh /opt/buildtools/openjdk8 || exit 1
sh /buildtools/scripts/Apache_Ant_1.10.12.sh /opt/buildtools/apache_ant-1.10.12 || exit 1
sh /buildtools/scripts/Apache_Maven_3.8.8.sh /opt/buildtools/apache-maven-3.8.3 || exit 1
sh /buildtools/scripts/GCC_7.3.0.sh /opt/buildtools/gcc-7.3.0 || exit 1
sh /buildtools/scripts/make_4.3.sh /opt/buildtools/make-4.3 || exit 1
sh /buildtools/scripts/CMake_3.28.2.sh /opt/buildtools/CMake-3.28.2 || exit 1
sh /buildtools/scripts/gradle_8.4.0.sh /opt/buildtools/gradle-8.4.0 || exit 1
sh /buildtools/scripts/binutils_2.41.sh /opt/buildtools/binutils-2.41 || exit 1
sh /buildtools/scripts/ccache_4.6.1.sh /opt/buildtools/ccache-4.6.1 || exit 1
sh /buildtools/scripts/Python_3.9.11.sh /opt/buildtools/python-3.9.11 || exit 1
sh /buildtools/scripts/scons_4.6.0.sh /opt/buildtools/scons-4.6.0 || exit 1
